home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Begin VB.MDIForm MDIDesk
- BackColor = &H8000000C&
- Caption = "Vb6/WebBrowser Automation"
- ClientHeight = 3510
- ClientLeft = 1260
- ClientTop = 630
- ClientWidth = 5280
- NegotiateToolbars= 0 'False
- ScrollBars = 0 'False
- Begin VB.Menu mnuFileMenu
- Caption = "&File"
- Begin VB.Menu mnuFile
- Caption = "&New"
- Index = 0
- Shortcut = ^N
- End
- Begin VB.Menu mnuFile
- Caption = "&Demo"
- Index = 1
- End
- Begin VB.Menu mnuFile
- Caption = "-"
- Index = 2
- End
- Begin VB.Menu mnuFile
- Caption = "E&xit"
- Index = 3
- End
- End
- Attribute VB_Name = "MDIDesk"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Option Explicit
- ' WbrWord v2.00 (Vb6) Apr 1999 contact markb@orionstudios.com
- ' Demonstrates using WebBrowser Control as container for MS Word Document
- ' WbrWord.frm is managed by (this) MDI Form to demonstrate that
- ' WinWord is started when a Word document is loaded into the frmWbrWord
- ' instance and remains active until the frmWbrWord instance is closed.
- ' This can be confirmed using Ctrl-Alt-Del to view the task list.
- ' See Header comments in WbrWord.frm
- '=================================================================================
- Private Sub MDIForm_Load()
- Me.Move 1200, 0, 9600, 8400
- End Sub
- Private Sub mnuFile_Click(Index As Integer)
- On Error Resume Next
- Select Case Index
- Case 0 ' Blank WebBrowser Form for loading Word Document
- With New frmWbrWord
- .Show
- End With
-
- Case 1 ' Demo manipulation of Word Document
- With New frmWbrWordDemo
- .Show
- End With
-
- Case 3 ' Exit
- Unload Me
-
- End Select
- End Sub
-